Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: pattern is being ignored #18471

Closed
1 task
codeef opened this issue May 18, 2024 · 0 comments
Closed
1 task

Issue: pattern is being ignored #18471

codeef opened this issue May 18, 2024 · 0 comments
Labels
bug ESLint is working incorrectly repro:needed

Comments

@codeef
Copy link

codeef commented May 18, 2024

Environment

Node version: 20.12.0
npm version: 10.7.0
Local ESLint version: 9.2.0
Global ESLint version:
Operating System:

What parser are you using?

@typescript-eslint/parser

What did you do?

I moved from eslint v8 with .eslintrc file to v9 with flat config and the eslint.config.js file.
Since then, I get an error while running
eslint --fix --max-warnings=0 src

The error says:
You are linting "src", but all of the files matching the glob pattern "src" are ignored.
But I don't think I'm ignoring the src pattern anywhere

I have this repo where you can see all the relevant code to reproduce the issue

Can you please tell me what am I doing wrong and how can I fix it?

Thanks

What did you expect to happen?

Expected eslint to run properly with the new flat config

What actually happened?

Can't run eslint --fix and eslint also not working with VSCode IDE

Link to Minimal Reproducible Example

https://github.com/codeef/eslint-try-0/tree/master

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

@codeef codeef added bug ESLint is working incorrectly repro:needed labels May 18, 2024
@eslint eslint locked and limited conversation to collaborators May 22, 2024
@aladdin-add aladdin-add converted this issue into discussion #18484 May 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug ESLint is working incorrectly repro:needed
Projects
Status: Complete
Development

No branches or pull requests

1 participant